// 轮播图
.banner {
  height: 1.8rem;
}
// .container
// 案例展示
.cases {
  position: relative;
  // width: 11.5rem;
  width: 11.5rem;
  margin: 0 auto;
  .head {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
    ul {
      display: flex;
      justify-content: flex-start;
      flex-wrap: wrap;
      li {
        display: flex;
        justify-content: center;
        align-items: center;
        float: left;
        width: 19.5%;
        height: 40px;
        color: #fff;
        background-color: #ccc;
        margin-right: 2px;
        &:last-child {
          margin-right: 0px;
        }
      }
    }
  }
  .head2 {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    margin-left: -20px;
    img {
      width: 70%;
    }
  }
  .case_item {
    // width: 100%;
    img {
      margin-bottom: 0.2rem;
    }
    .fenye {
      display: flex;
      justify-content: center;
    }
  }
}
#list:checked~.head2 {
  // display: none;
  width: 30px;
  height: 30px;
  margin-left: -20px;
}
#list:checked~.head {
  display: block;
  position: absolute;
  top: 24px;
  left: -18px;
  height: 200px;
  ul {
    flex-direction: column;
    li {
      color: #7e6d6d;
      background-color: rgb(204, 204, 204);
    }
  }
}
@media screen and (max-width: 410px) {
  .cases .head ul li {
    margin-top: 5px;
  }
}

@media (min-width: 768px)
{
  .container {
    width: 100%;
}
}
@media (min-width: 992px){
  .container {
      width: 100%;
  }
}
@media (min-width: 1200px){
  .container {
      width: 100%;
    }
}
@media screen and (max-width: 580px) and(min-width: 280px) {
  .cases .head {
    display: none;
  }
  .cases .head2 {
    display: block;
  }
}
@media screen and (min-width: 580px) {
  .cases .head2 {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .cases {
    width: 13.5rem;
  }
  .cases .head ul li {
    font-size: 12px;
  }
  .cases .case_item img {
    width: 50%;
    margin-left: 25%;
  }
}

@media screen and (max-width:1160px) {
  
}





